package com.yunxi.service.dubboService.impl.sys;

import com.yunxi.bzToBase.service.StaffOrgInfoService;
import com.yunxi.sys.pojo.OrgListVO;
import com.yunxi.sys.pojo.StaffListVO;
import com.yunxi.sys.service.OrgDubboService;
import com.yunxi.sys.service.StaffDubboService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import java.util.List;

/**
 * <p>
 * 获取组织/人员信息 服务实现类
 * </p>
 *
 * @author 
 * @since 2019-05-30
 */

public class StaffOrgInfoServiceImpl implements StaffOrgInfoService {

    @Autowired
    @Qualifier(value = "orgDubboServiceImpl")
    OrgDubboService orgDubboService;

    @Autowired
    @Qualifier(value = "staffDubboServiceImpl")
    StaffDubboService staffDubboService;


    /**
     * 获取组织列表
     * @return
     */
    @Override
    public List getOrgList() {
        List<OrgListVO> list = orgDubboService.getOrgList();
        return list;
    }

    /**
     * 通过组织id获取人员列表
     * @param orgId
     * @return
     */
    @Override
    public List getStaffById(String orgId) {
        List<StaffListVO> list = staffDubboService.getStaffListById(orgId);
        return list;
    }
}
